<?php

//url参数过滤
function filterUrl($param) {
    $uri = $_SERVER['REQUEST_URI'];
    $preg = '/\/'.$param.'[0-9]+/';
    return preg_replace($preg, '', $uri);
}